import axios from 'axios';


export const getSerialPorts = async (): Promise<any[]> => {
  try {
    const response = await axios.get('/api/program_management/serials'); 
    return response.data;
  } catch (error) {
    console.error('获取串口数据失败', error);
    return [];
  }
};
